David Orozco, Arie del Valle, Ethan Schacht, Ryan Tate
February 8, 2019
David’s Graph
I used geom_density to show the distribution of birht wieght in ounces. I used facet command to show differences in the distribution based on whether or not the baby was premature. ( 1 is born before gestational age of 270, 0 is after 270)
The mean of the distribution for birth weight of premature babies (~100) is the smallest of the three distributions.
Arie’s Graph
I created this plot using geom_jitter.I set x = mother’s age and y = birth weight in aesthetic. I usd ggtitle, xlab, and ylab to label all axis and the graph.
From this graph I found that between age’s 20-30, the birth weight is more conssitant. Then, after age 30, the graph shows that birth weight is less conssisent.
Ethan’s Graph
## [1] 0.2017992
I asked the question of whether or not mothers’ pre-pregnancy weights affect their babys’ birth weights, using their smoking habits as a confounding variable. I created this graph using geom_point and geom_smooth to plot mothers’ weights before pregnancy vs babys’ birth weights. I also used facets to separate this correlation by smoking habits. I used xlab, ylab, ggtitle, subtitle, and non-default colors and shapes to enhance my graph’s aesthetic appeal.
I found that there is a weak positive correlation between mothers’ pre-pregnancy weights and babys’ birth weights with an R value of 0.202. However, whether or not the mom never smokes or smokes now has little to no affect on this correlation.
Ryan’s Graph
I created this graph with geom_histogram to plot the amount of premature babies born for mother’s who smoked and mothers who did not smoke during pregnancy.
I found that there were born premature babies born from mothers who did not smoke than mothers who did smoke. This could be very misleading though as the number mothers who did not smoke during pregnancy is probably much larger than mothers who did smoke.
Lab 4
Anderson’s Graph
I created this graph using geom smooth and a facet grid. With the facet grid you can measure the differences in weight of the babies from mothers who smoke and don’t smoke. The x axis is the education level and the y axis is the birth weight.
I found that with my graph the weights of the babies from mothers who smoke are significantly lower. Also mothers with higher education seem to have slightly larger babies.
Main questions and Importance:
“Do mothers’ smoking habits affect the presence of premature births?” and “Do mothers’ smoking habits affect the correlation between their babys’ gestational age and birth weight?”
These questions are important because answering them will allow us to provide recommendations to mothers on whether or not smoking is hurtful for their newborn babies. Most parents care deeply about the well-being of their babies, who contain fragile health, making this statistical study very relevant and important.
Team Plot #1
## [1] 0.3925636
Findings: This graph answers our second main question, which is “Do mothers’ smoking habits affect the correlation between their babys’ gestational age and birth weight?” The surgeon general’s assumption was that newborns of mothers who smoke have smaller birth weights as gestational age rises than newborns of mothers who don’t smoke. This graph appears to prove otherwise because the smoker line of best fit has a steeper positive slope than the non-smoker line of best fit, meaning birth weight increases as gestational age rises at a slightly faster rate for newborns of mothers who smoke. Overall, there is a near- moderate positive correlation between gestational age and birth weight at an R value of 0.393.
=======
<<<<<<< HEAD
<<<<<<< Updated upstream
=======
>>>>>>> master
Lab 04 Not Team 1
Lab 04 Not Team 1
David Orozco, Arie del Valle, Ethan Schacht, Ryan Tate
February 8, 2019
Main questions and Importance:
“Do mothers’ smoking habits affect the presence of premature births?” and “Do mothers’ smoking habits affect the correlation between their babys’ gestational age and birth weight?”
These questions are important because answering them will allow us to provide recommendations to mothers on whether or not smoking is hurtful for their newborn babies. Most parents care deeply about the well-being of their babies, who contain fragile health, making this statistical study very relevant and important. These reasons are important because it promotes awareness to help parents take preventative measures to avoiding premature births.
Team Plot #1
Team Plot #2
Findings: Plot 1 answers our second main question, which is “Do mothers’ smoking habits affect the correlation between their babys’ gestational age and birth weight?” The surgeon general’s assumption was that newborns of mothers who smoke have smaller birth weights as gestational age rises than newborns of mothers who don’t smoke. This graph appears to prove otherwise because the smoker line of best fit has a steeper positive slope than the non-smoker line of best fit, meaning birth weight increases as gestational age rises at a slightly faster rate for newborns of mothers who smoke. Overall, there is a near- moderate positive correlation between gestational age and birth weight at an R value of 0.393.
Recommendations:
Preliminary Question Plot
David’s Graph
<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> master
=======
>>>>>>> master
I used geom_density to show the distribution of birht wieght in ounces. I used facet command to show differences in the distribution based on whether or not the baby was premature. ( 1 is born before gestational age of 270, 0 is after 270)
The mean of the distribution for birth weight of premature babies (~100) is the smallest of the three distributions.
Arie’s Graph
<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> master
=======
>>>>>>> master
I created this plot using geom_jitter.I set x = mother’s age and y = birth weight in aesthetic. I usd ggtitle, xlab, and ylab to label all axis and the graph.
From this graph I found that between age’s 20-30, the birth weight is more conssitant. Then, after age 30, the graph shows that birth weight is less conssisent.
Ethan’s Graph
<<<<<<< HEAD
<<<<<<< HEAD
I created this graph using geom_point and geom_smooth to plot mothers’ weights before pregnancy vs babys’ birth weights. I also used facets to separate this correlation by smoking habits to see if smoking affected the correlation between the two weights. I used xlab, ylab, ggtitle, subtitle, and non-default colors and shapes to enhance my graph’s aesthetic appeal.
I found that there is a minor positive correlation between mothers’ pre-pregnancy weights and babys’ birth weights. However, whether or not the mom never smokes or smokes now has no affect on this correlation.
=======
=======
>>>>>>> master
## [1] 0.2017992
I asked the question of whether or not mothers’ pre-pregnancy weights affect their babys’ birth weights, using their smoking habits as a confounding variable. I created this graph using geom_point and geom_smooth to plot mothers’ weights before pregnancy vs babys’ birth weights. I also used facets to separate this correlation by smoking habits. I used xlab, ylab, ggtitle, subtitle, and non-default colors and shapes to enhance my graph’s aesthetic appeal.
I found that there is a weak positive correlation between mothers’ pre-pregnancy weights and babys’ birth weights with an R value of 0.202. However, whether or not the mom never smokes or smokes now has little to no affect on this correlation.
>>>>>>> master
Ryan’s Graph
<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> master
=======
>>>>>>> master
I created this graph with geom_histogram to plot the amount of premature babies born for mother’s who smoked and mothers who did not smoke during pregnancy.
I found that there were born premature babies born from mothers who did not smoke than mothers who did smoke. This could be very misleading though as the number mothers who did not smoke during pregnancy is probably much larger than mothers who did smoke.
I created this graph using geom smooth and a facet grid. With the facet grid you can measure the differences in weight of the babies from mothers who smoke and don’t smoke. The x axis is the education level and the y axis is the birth weight.
I found that with my graph the weights of the babies from mothers who smoke are significantly lower. Also mothers with higher education seem to have slightly larger babies.
<<<<<<< HEAD
=======
<<<<<<< HEAD
Main questions and Importance:
“Do mothers’ smoking habits affect the presence of premature births?” and “Do mothers’ smoking habits affect the correlation between their babys’ gestational age and birth weight?”
These questions are important because answering them will allow us to provide recommendations to mothers on whether or not smoking is hurtful for their newborn babies. Most parents care deeply about the well-being of their babies, who contain fragile health, making this statistical study very relevant and important.